﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VBACodeingTool
{
    public class ProjectCodeData : CodeData
    {
        ProjectCodeType codeType;
        ScopeType scopeType;
        ParentType parentType;
        string parentName;

        public ProjectCodeData(bool isLastUse, string shortCut, string content, int score, ProjectCodeType codeType, ScopeType scopeType, string parentName, ParentType parentType) : base(isLastUse, shortCut, content, score)
        {
            CodeType = codeType;
            ScopeType = scopeType;
            ParentName = parentName;
            ParentType = parentType;
        }

        public ProjectCodeType CodeType { get => codeType; set => codeType = value; }
        public ScopeType ScopeType { get => scopeType; set => scopeType = value; }
        public string ParentName { get => parentName; set => parentName = value; }
        public ParentType ParentType { get => parentType; set => parentType = value; }
    }
    public enum ProjectCodeType
    {
        Variable = 0,
        Sub
    }

    public enum ScopeType
    {
        _Private = 0,
        _Public,
        _Sub
    }
    public enum ParentType
    {
        _File = 0,
        _Module,
        _Class,
        _Document,
        _NoType
    }
}
